package com.jilujia.domain.blog.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.jilujia.domain.blog.BlogComment;
import com.jilujia.framework.domain.JpaBusinessRepository;

@Repository
@Transactional(readOnly = true)
public interface BlogCommentRepository extends JpaBusinessRepository<Long, BlogComment> {

	@Query("select a from BlogComment a where a.blog.id = :blogId order by a.id")
	List<BlogComment> findBlogCommentListByBlogId(@Param("blogId") Long blogId);
}
